In most cases, the text itself makes the message clear enough.
* @state. For convenience, #GdkEventKey already contains the translated
* keyval, so this function isn't as useful as you might think.
*
- * <note><para>
* @consumed_modifiers gives modifiers that should be masked out
* from @state when comparing this key press to a hot key. For
* instance, on a US keyboard, the <literal>plus</literal>
* symbol is shifted, so when comparing a key press to a
* <literal><Control>plus</literal> accelerator <Shift> should
* be masked out.
- * </para>
+ *
* |[<!-- language="C" -->
* /* We want to ignore irrelevant modifiers like ScrollLock */;
* #define ALL_ACCELS_MASK (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK)
* (event->state & ~consumed & ALL_ACCELS_MASK) == GDK_CONTROL_MASK)
* /* Control was pressed */
* ]|
- * <para>
+ *
* An older interpretation @consumed_modifiers was that it contained
* all modifiers that might affect the translation of the key;
* this allowed accelerators to be stored with irrelevant consumed
- * modifiers, by doing:</para>
+ * modifiers, by doing:
* |[<!-- language="C" -->
* /* XXX Don't do this XXX */
* if (keyval == accel_keyval &&
* (event->state & ~consumed & ALL_ACCELS_MASK) == (accel_mods & ~consumed))
* /* Accelerator was pressed */
* ]|
- * <para>
+ *
* However, this did not work if multi-modifier combinations were
* used in the keymap, since, for instance, <literal><Control></literal>
* would be masked out even if only <literal><Control><Alt></literal>
* accelerators, you should always store them with consumed modifiers
* removed. Store <literal><Control>plus</literal>,
* not <literal><Control><Shift>plus</literal>,
- * </para></note>
*
* Return value: %TRUE if there was a keyval bound to the keycode/state/group
**/
*
* Creates a Cairo context for drawing to @window.
*
- * <note><warning>
* Note that calling cairo_reset_clip() on the resulting #cairo_t will
* produce undefined results, so avoid it at all costs.
- * </warning></note>
*
* Return value: A newly created Cairo context. Free with
* cairo_destroy() when you are done drawing.
* #GdkEventConfigure. gdk_window_get_position() in contrast gets the
* position from the most recent configure event.
*
- * <note>
- * If @window is not a toplevel, it is much better
+ * Note: If @window is not a toplevel, it is much better
* to call gdk_window_get_position(), gdk_window_get_width() and
* gdk_window_get_height() instead, because it avoids the roundtrip to
* the X server and because these functions support the full 32-bit
* coordinate space, whereas gdk_window_get_geometry() is restricted to
* the 16-bit coordinates of X11.
- *</note>
- **/
+ */
void
gdk_window_get_geometry (GdkWindow *window,
gint *x,
* property does not exist, then the function returns %FALSE,
* and %GDK_NONE will be stored in @actual_property_type.
*
- * <note>
- * <para>
* The XGetWindowProperty() function that gdk_property_get()
* uses has a very confusing and complicated set of semantics.
* Unfortunately, gdk_property_get() makes the situation
* undefined), and also prints warnings to stderr in cases where it
* should return a useful error to the program. You are advised to use
* XGetWindowProperty() directly until a replacement function for
- * gdk_property_get()
- * is provided.
- * </para>
- * </note>
+ * gdk_property_get() is provided.
*
* Returns: %TRUE if data was successfully received and stored
* in @data, otherwise %FALSE.
*
* Sets the #GtkWidget corresponding to the #GtkAccessible.
*
- * <note><para>@accessible will not hold a reference to @widget.
+ * @accessible will not hold a reference to @widget.
* It is the caller's responsibility to ensure that when @widget
* is destroyed, the widget is unset by calling this function
- * again with @widget set to %NULL.</para></note>
+ * again with @widget set to %NULL.
+ *
* Since: 2.22
*/
void
* Of course, if the scale settings are both set to 1, the alignment settings
* have no effect.
*
- * <note>
- * <para>
* Note that the desired effect can in most cases be achieved by using the
* #GtkWidget:halign, #GtkWidget:valign and #GtkWidget:margin properties
* on the child widget, so #GtkAlignment should not be used in new code.
- * </para>
- * </note>
*/
#include "config.h"
* fill and padding child properties.
* Use gtk_box_query_child_packing() to query these fields.
*
- * <note><para>
* Note that a single-row or single-column #GtkGrid provides exactly
* the same functionality as #GtkBox.
- * </para></note>
*/
#include "config.h"
* main user of this interface is #GtkBuilder. There should be
* very little need for applications to call any of these functions directly.
*
- * <note><para>An object only needs to implement this interface if it needs
- * to extend the #GtkBuilder format or run any extra routines at deserialization time</para></note>
+ * An object only needs to implement this interface if it needs to extend the
+ * #GtkBuilder format or run any extra routines at deserialization time.
*/
#include "config.h"
* #GError from the #GTK_BUILDER_ERROR, #G_MARKUP_ERROR or #G_FILE_ERROR
* domain.
*
- * <note><para>
* If you are adding an object that depends on an object that is not
* its child (for instance a #GtkTreeView that depends on its
* #GtkTreeModel), you have to explicitly list all of them in @object_ids.
- * </para></note>
*
* Returns: A positive value on success, 0 if an error occurred
*
* #GError from the #GTK_BUILDER_ERROR, #G_MARKUP_ERROR or #G_RESOURCE_ERROR
* domain.
*
- * <note><para>
* If you are adding an object that depends on an object that is not
* its child (for instance a #GtkTreeView that depends on its
* #GtkTreeModel), you have to explicitly list all of them in @object_ids.
- * </para></note>
*
* Returns: A positive value on success, 0 if an error occurred
*
* Upon errors 0 will be returned and @error will be assigned a
* #GError from the #GTK_BUILDER_ERROR or #G_MARKUP_ERROR domain.
*
- * <note><para>
* If you are adding an object that depends on an object that is not
* its child (for instance a #GtkTreeView that depends on its
* #GtkTreeModel), you have to explicitly list all of them in @object_ids.
- * </para></note>
*
* Returns: A positive value on success, 0 if an error occurred
*
* builtin parsing support, so %NULL may be provided for these
* cases.
*
- * <note>
* Engines must ensure property registration happens exactly once,
* usually GTK+ deals with theming engines as singletons, so this
* should be guaranteed to happen once, but bear this in mind
* when creating #GtkThemeEngine<!-- -->s yourself.
- * </note>
*
- * <note>
* In order to make use of the custom registered properties in
* the CSS file, make sure the engine is loaded first by specifying
* the engine property, either in a previous rule or within the same
* -SomeEngine-custom-property: 2;
* }
* ]|
- * </note>
*
* Since: 3.0
*
* you want to set the background to a different color or
* draw on it.
*
- * <note><para>
* There is one unexpected issue for an invisible event box that has its
* window below the child. (See gtk_event_box_set_above_child().)
* Since the input-only window is not an ancestor window of any windows
* The practical effect of this is if an event isn't in the event
* mask for the descendant window (see gtk_widget_add_events()),
* it won't be received by the event box.
- * </para><para>
+ *
* This problem doesn't occur for visible event boxes, because in
* that case, the event box window is actually the ancestor of the
* descendant windows, not just at the same place on the screen.
- * </para></note>
*
* Since: 2.4
*/
* The minimum number of children to allocate consecutively
* in the given orientation.
*
- * <note><para>Setting the minimum children per line ensures
+ * Setting the minimum children per line ensures
* that a reasonably small height will be requested
- * for the overall minimum width of the box.</para></note>
+ * for the overall minimum width of the box.
*/
g_object_class_install_property (object_class,
PROP_MIN_CHILDREN_PER_LINE,
* Sets a #PangoAttrList; the attributes in the list are applied to the
* label text.
*
- * <note><para>The attributes set with this function will be applied
+ * The attributes set with this function will be applied
* and merged with any other attributes previously effected by way
* of the #GtkLabel:use-underline or #GtkLabel:use-markup properties.
* While it is not recommended to mix markup strings with manually set
* attributes, if you must; know that the attributes will be applied
- * to the label after the markup string is parsed.</para></note>
+ * to the label after the markup string is parsed.
**/
void
gtk_label_set_attributes (GtkLabel *label,
* the option group returned by gtk_get_option_group(),
* you don't have to call gtk_init().
*
- * <note><para>
* This function will terminate your program if it was unable to
* initialize the windowing system for some reason. If you want
* your program to fall back to a textual interface you want to
* call gtk_init_check() instead.
- * </para></note>
*
- * <note><para>
* Since 2.18, GTK+ calls <literal>signal (SIGPIPE, SIG_IGN)</literal>
* during initialization, to ignore SIGPIPE signals, since these are
* almost never wanted in graphical applications. If you do need to
* handle SIGPIPE for some reason, reset the handler after gtk_init(),
* but notice that other libraries (e.g. libdbus or gvfs) might do
* similar things.
- * </para></note>
*/
void
gtk_init (int *argc, char ***argv)
* a container in such a way that it expands automatically to fill its
* allocated area, the alignment settings will not alter the widgets position.
*
- * <note>
* Note that the desired effect can in most cases be achieved by using the
* #GtkWidget:halign, #GtkWidget:valign and #GtkWidget:margin properties
* on the child widget, so GtkMisc should not be used in new code.
- * </note>
*/
* integration when embedding a <application>Qt</application> widget
* in GTK+ or vice versa.
*
- * <note>
* The #GtkPlug and #GtkSocket widgets are only available when GTK+
* is compiled for the X11 platform and %GDK_WINDOWING_X11 is defined.
* They can only be used on a #GdkX11Display. To use #GtkPlug and
* #GtkSocket, you need to include the <filename>gtk/gtkx.h</filename>
* header.
- * </note>
*/
struct _GtkPlugPrivate
* Sets the preferred position for @popover to appear. If the @popover
* is currently visible, it will be immediately updated.
*
- * <note>
- * This preference will be respected where possible, although
- * on lack of space (eg. if close to the window edges), the
- * #GtkPopover may choose to appear on the opposite side
- * </note>
+ * This preference will be respected where possible, although
+ * on lack of space (eg. if close to the window edges), the
+ * #GtkPopover may choose to appear on the opposite side
*
* Since: 3.12
**/
* should be displayed only by the applications that have
* registered it.
*
- * <note><para>The recently used files list is per user.</para></note>
+ * The recently used files list is per user.
*
* The #GtkRecentManager acts like a database of all the recently
* used files. You can create new #GtkRecentManager objects, but
* A #GtkRecentManager is the model used to populate the contents of
* one, or more #GtkRecentChooser implementations.
*
- * <note><para>The maximum age of the recently used files list is
+ * Note that the maximum age of the recently used files list is
* controllable through the #GtkSettings:gtk-recent-files-max-age
- * property.</para></note>
+ * property.
*
* Recently used files are supported since GTK+ 2.10.
*/
* Gets whether the widget prefers a height-for-width layout
* or a width-for-height layout.
*
- * <note><para>#GtkBin widgets generally propagate the preference of
+ * #GtkBin widgets generally propagate the preference of
* their child, container widgets need to request something either in
* context of their children or in context of their allocation
- * capabilities.</para></note>
+ * capabilities.
*
* Returns: The #GtkSizeRequestMode preferred by @widget.
*
*
* Retrieves a widget's initial minimum and natural width.
*
- * <note><para>This call is specific to height-for-width
- * requests.</para></note>
+ * This call is specific to height-for-width requests.
*
* The returned request will be modified by the
* GtkWidgetClass::adjust_size_request virtual method and by any
*
* Retrieves a widget's initial minimum and natural height.
*
- * <note><para>This call is specific to width-for-height requests.</para></note>
+ * This call is specific to width-for-height requests.
*
* The returned request will be modified by the
* GtkWidgetClass::adjust_size_request virtual method and by any
* to deduce toplevel window and menu sizes as well as child widgets in
* free-form containers such as GtkLayout.
*
- * <note><para>Handle with care. Note that the natural height of a height-for-width
+ * Handle with care. Note that the natural height of a height-for-width
* widget will generally be a smaller size than the minimum height, since the required
* height for the natural width is generally smaller than the required height for
- * the minimum width.</para></note>
+ * the minimum width.
*/
void
_gtk_widget_get_preferred_size_and_baseline (GtkWidget *widget,
* to deduce toplevel window and menu sizes as well as child widgets in
* free-form containers such as GtkLayout.
*
- * <note><para>Handle with care. Note that the natural height of a height-for-width
+ * Handle with care. Note that the natural height of a height-for-width
* widget will generally be a smaller size than the minimum height, since the required
* height for the natural width is generally smaller than the required height for
- * the minimum width.</para></note>
+ * the minimum width.
*
* Use gtk_widget_get_preferred_height_and_baseline_for_width() if you want to support
* baseline alignment.
* integration when embedding a <application>Qt</application> widget
* in GTK or vice versa.
*
- * <note>
* The #GtkPlug and #GtkSocket widgets are only available when GTK+
* is compiled for the X11 platform and %GDK_WINDOWING_X11 is defined.
* They can only be used on a #GdkX11Display. To use #GtkPlug and
* #GtkSocket, you need to include the <filename>gtk/gtkx.h</filename>
* header.
- * </note>
*/
/* Forward declararations */
* won't be attached to any widget, so you may want
* to call gtk_style_context_set_path() yourself.
*
- * <note>
* This function is only useful when using the theming layer
* separated from GTK+, if you are using #GtkStyleContext to
* theme #GtkWidget<!-- -->s, use gtk_widget_get_style_context()
* in order to get a style context ready to theme the widget.
- * </note>
*
* Returns: A newly created #GtkStyleContext.
**/
* to affect the style of all widgets, use
* gtk_style_context_add_provider_for_screen().
*
- * <note><para>If both priorities are the same, A #GtkStyleProvider
+ * Note: If both priorities are the same, a #GtkStyleProvider
* added through this function takes precedence over another added
- * through gtk_style_context_add_provider_for_screen().</para></note>
+ * through gtk_style_context_add_provider_for_screen().
*
* Since: 3.0
**/
* GTK+ uses this to make styling information from #GtkSettings
* available.
*
- * <note><para>If both priorities are the same, A #GtkStyleProvider
+ * Note: If both priorities are the same, A #GtkStyleProvider
* added through gtk_style_context_add_provider() takes precedence
- * over another added through this function.</para></note>
+ * over another added through this function.
*
* Since: 3.0
**/
*
* would apply to even and odd rows, respectively.
*
- * <note><para>Region names must only contain lowercase letters
- * and '-', starting always with a lowercase letter.</para></note>
+ * Region names must only contain lowercase letters
+ * and '-', starting always with a lowercase letter.
*
* Since: 3.0
**/
* For example, when you change the text in a #GtkLabel, #GtkLabel
* queues a resize to ensure there's enough space for the new text.
*
- * <note><para>You cannot call gtk_widget_queue_resize() on a widget
+ * Note that you cannot call gtk_widget_queue_resize() on a widget
* from inside its implementation of the GtkWidgetClass::size_allocate
* virtual method. Calls to gtk_widget_queue_resize() from inside
- * GtkWidgetClass::size_allocate will be silently ignored.</para></note>
+ * GtkWidgetClass::size_allocate will be silently ignored.
**/
void
gtk_widget_queue_resize (GtkWidget *widget)
* is fine to modify the context with cairo_save() and
* cairo_push_group() prior to calling this function.
*
- * <note><para>Special purpose widgets may contain special code for
+ * Note that special-purpose widgets may contain special code for
* rendering to the screen and might appear differently on screen
- * and when rendered using gtk_widget_draw().</para></note>
+ * and when rendered using gtk_widget_draw().
*
* Since: 3.0
**/
* you may not think of as containers, for instance #GtkButton<!-- -->s,
* are actually containers.
*
- * <note><para>
* This API is mostly meant as a quick way for applications to
* change a widget appearance. If you are developing a widgets
* library and intend this change to be themeable, it is better
* done by setting meaningful CSS classes and regions in your
* widget/container implementation through gtk_style_context_add_class()
* and gtk_style_context_add_region().
- * </para><para>
+ *
* This way, your widget library can install a #GtkCssProvider
* with the %GTK_STYLE_PROVIDER_PRIORITY_FALLBACK priority in order
* to provide a default styling for those widgets that need so, and
* this theming may fully overridden by the user's theme.
- * </para></note>
- * <note><para>
+ *
* Note that for complex widgets this may bring in undesired
* results (such as uniform background color everywhere), in
* these cases it is better to fully style such widgets through a
* #GtkCssProvider with the %GTK_STYLE_PROVIDER_PRIORITY_APPLICATION
* priority.
- * </para></note>
*
* Since: 3.0
*/
*
* Sets a non default parent window for @widget.
*
- * For GtkWindow classes, setting a @parent_window effects whether
+ * For #GtkWindow classes, setting a @parent_window effects whether
* the window is a toplevel window or can be embedded into other
* widgets.
*
- * <note><para>
- * For GtkWindow classes, this needs to be called before the
+ * For #GtkWindow classes, this needs to be called before the
* window is realized.
- * </para></note>
- *
- **/
+ */
void
-gtk_widget_set_parent_window (GtkWidget *widget,
- GdkWindow *parent_window)
+gtk_widget_set_parent_window (GtkWidget *widget,
+ GdkWindow *parent_window)
{
GdkWindow *old_parent_window;
* by calling gtk_widget_set_has_window(). This is usually done in the
* widget's init() function.
*
- * <note><para>This function does not add any reference to @window.</para></note>
+ * Note that this function does not add any reference to @window.
*
* Since: 2.18
*/
*
* For convenience, gtk_widget_class_set_template_from_resource() is also provided.
*
- * <note><para>Any class that installs templates must call gtk_widget_init_template()
- * in the widget's instance initializer</para></note>
+ * Note that any class that installs templates must call gtk_widget_init_template()
+ * in the widget's instance initializer.
*
* Since: 3.10
*/
*
* A convenience function to call gtk_widget_class_set_template().
*
- * <note><para>Any class that installs templates must call gtk_widget_init_template()
- * in the widget's instance initializer</para></note>
+ * Note that any class that installs templates must call gtk_widget_init_template()
+ * in the widget's instance initializer.
*
* Since: 3.10
*/
* Declares a @callback_symbol to handle @callback_name from the template XML
* defined for @widget_type. See gtk_builder_add_callback_symbol().
*
- * <note><para>This must be called from a composite widget classes class
- * initializer after calling gtk_widget_class_set_template()</para></note>
+ * Note that this must be called from a composite widget classes class
+ * initializer after calling gtk_widget_class_set_template().
*
* Since: 3.10
*/
* For use in lanuage bindings, this will override the default #GtkBuilderConnectFunc to be
* used when parsing GtkBuilder xml from this class's template data.
*
- * <note><para>This must be called from a composite widget classes class
- * initializer after calling gtk_widget_class_set_template()</para></note>
+ * Note that this must be called from a composite widget classes class
+ * initializer after calling gtk_widget_class_set_template().
*
* Since: 3.10
*/
* gtk_widget_class_bind_template_child_private() and gtk_widget_class_bind_template_child_internal_private()
* might be more convenient to use.
*
- * <note><para>This must be called from a composite widget classes class
- * initializer after calling gtk_widget_class_set_template()</para></note>
+ * Note that this must be called from a composite widget classes class
+ * initializer after calling gtk_widget_class_set_template().
*
* Since: 3.10
*/
* the hierarchy defined in @path. See
* gtk_style_context_add_region().
*
- * <note><para>Region names must only contain lowercase letters
- * and '-', starting always with a lowercase letter.</para></note>
+ * Region names must only contain lowercase letters
+ * and '-', starting always with a lowercase letter.
*
* Since: 3.0
**/